<template>
  <div>
    <Header />
    <router-view></router-view>
    <!-- Footer组件根据路由进行隐藏 -->
    <!-- 在这里 直接进行判断 当前path是否全等于home或search  -->
    <Footer v-show="$route.path === '/home' || $route.path === '/search'" />
  </div>
</template>

<script>
import Header from "@/components/Header/Header.vue";
import Footer from "@/components/Footer/Footer.vue";
export default {
  name: "App",
  components: { Header, Footer },
};
</script>

<style lang="less" scoped></style>
